package de.connecttext.dao;

public class IdGenerator {
	
	private static IdGenerator instance;
	private int nextId = 0;

	private IdGenerator() {
		
	}

	public static IdGenerator getInstance() {
		if (instance == null) instance = new IdGenerator();	
		return instance;
	}
	
	public int generateId() {
		this.nextId ++;
		//System.out.println("New ID: " + this.nextId);
		return this.nextId;
	}
	
}
